package day06;

import java.time.LocalDate;
import java.util.Scanner;

public class Demo5 {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        System.out.println("请输入一个年份");
        int year=sc.nextInt();
        LocalDate of = LocalDate.of(year, 3, 1);
        LocalDate localDate = of.plusDays(-1);
        int day=localDate.getDayOfMonth();
        if (day==28){
            System.out.println( year+"是平年");
        }else {
            System.out.println(year+"是闰年");
        }
    }
}
